home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 July & August
/
PCWorld_2006-07-08_cd.bin
/
v cisle
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Show Date 1.sd
< prev
next >
Wrap
INI File
|
2004-06-28
|
1KB
|
58 lines
[SUBJECT]
Description=Display the current date (1st variant)
ImageIndex=-1
Folder=Tools
[HEAD_TEXT]
;<script language="JavaScript">
;<!-- begin script
;var dd1, delay;
;function debuteDate1() {
; var adate, date, amonth;
; delay = `delay`;
; adate = new Date();
; date = adate.getDate();
; amonth = adate.getMonth()+1;
;
; if (amonth == 1) date += " January";
; else if (amonth == 2) date += " February";
; else if (amonth == 3) date += " March";
; else if (amonth == 4) date += " April";
; else if (amonth == 5) date += " May";
; else if (amonth == 6) date += " June";
; else if (amonth == 7) date += " July";
; else if (amonth == 8) date += " August";
; else if (amonth == 9) date += " September";
; else if (amonth == 10) date += " October";
; else if (amonth == 11) date += " November";
; else if (amonth == 12) date += " December";
; if (adate.getYear() > 1999)
; date += " " + adate.getYear();
; else date += " " + (1900 + adate.getYear());
; date = " " + date;
; document.Temps21.date.value = date;
; dd1 = setTimeout("debuteDate1(delay)",delay);
;}
;// end script -->
;</script>
;
[BODY_TAG]
;onLoad="debuteDate1()" onUnload="clearTimeout(dd1)"
[BODY_TEXT]
;<form name="Temps21">
;<input type="text" name="date" size="18"><br>
;</form>
;
[`delay`]
Kind=N
Value=10000